Automattic\WooCommerce\GoogleListingsAndAds\Ads\AssetSuggestionsService A

Total Complexity 69
Dependencies 11
Dependents 3
Total lines 768
Lines of code 364
Logical lines of code 170
Comment lines 206
Methods 26
Properties 5

Methods 26

Method Rating Maintainability Complexity Lines of code
get_url_attachments_by_ids()
A
50 10 27
get_post_assets()
S
48 6 33
get_html_inserted_images()
S
50 6 32
get_final_url_suggestions()
S
53 5 21
get_url()
S
58 5 15
get_term_assets()
S
49 4 29
get_post_suggestions()
S
50 3 29
get_terms_suggestions()
S
53 3 24
get_homepage_assets()
S
54 2 20
get_gallery_images_ids()
S
67 3 7
get_wp_assets()
S
66 3 9
get_assets_suggestions()
S
68 2 7
title_filter()
S
66 2 8
get_defaults_final_url_suggestions()
S
66 2 8
get_posts_assigned_to_a_term()
S
59 1 15
get_asset_group_asset_suggestions()
S
66 2 8
get_homepage_final_url()
S
77 1 3
sort_results()
S
66 1 9
format_final_url_response()
S
67 1 8
__construct()
S
69 1 7
get_post_image_attachments()
S
63 1 10
prepare_image_ids()
S
72 1 5
get_shop_products()
S
65 1 9
get_shop_attachments()
S
70 1 7
get_logo_images()
S
74 1 4
get_suggestions_common_fields()
S
63 1 10